#!/bin/sh
docker volume create jenkins-data
docker run --name jenkins-production \
           --detach \
           -p 50000:50000 \
           -p 9090:8080 \
           -v jenkins-data:/var/jenkins_home \
           jenkins/jenkins:latest
# If run for the first time, just run the following to get the admin
# password once it has finished starting
docker exec jenkins-production bash -c 'cat $JENKINS_HOME/secrets/initialAdminPassword'
